<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<div class="t_bar"><span class="color_red">*</span>企业基本信息</div>
<table class="t_css" id="eq_table0" width="100%" border="0" cellpadding="0" cellspacing="1">
    <col width="20%"/>
    <col width="30%"/>
    <col width="20%"/>
    <col width="30%"/>

    <tr>
        <td align="right">公司名称：</td>
        <td colspan="3">
             <span name="organizations/organization/org_name">
                 <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name"/>
             </span>
        </td>
    </tr>
    <tr>
        <td align="right">法定代表人：</td>
        <td>
            <span name="organization_persons/cname">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
		    </span>
        </td>
        <td align="right">申报日期：</td>
        <td>
            <c:set var="submit_date">
                <x:out select="$xmlData/data/proposal/submit_date" />
            </c:set>
            <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期" ></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">成立时间：</td>
        <td align="center">
            <span name="organizations/organization/registe_date">
                <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date"/>
		    </span>
        </td>
        <td align="right">公司缴纳社保人数：</td>
        <td>
            <input type="text" label="公司缴纳社保人数" name="proposal/shebaonum" class="input_css required"
                   onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;"
                   value="<x:out select="$xmlData/data/proposal/shebaonum" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">注册资本（万元）：</td>
        <td align="center">
            <span name="organizations/organization/registe_fund">
		        <x:out select="$xmlData/data/org_basic_info/registe_fund"/>
            </span>万
            <span name="organizations/organization/registe_fund_money_name">
                <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund_money_name"/>
		    </span>
        </td>
        <td align="right">实缴资本（万元）：</td>
        <td>
            <input type="text" label="实缴资本" name="proposal/paid_funds" class="input_css required"
                   onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;"
                   value="<x:out select="$xmlData/data/proposal/paid_funds" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">首次扶持资金到账时间：</td>
        <td>
            <c:set var="supportfunds_date"><x:out select="$xmlData/data/proposal/supportfunds_date"/></c:set>
            <cpt:date id="supportfunds_date" name="proposal/supportfunds_date" value="${supportfunds_date}"
                      className="required date"
                      label="首次扶持资金到账时间"></cpt:date>
        </td>
        <td align="right">首次扶持方式：</td>
        <td>
            <input type="text" label="首次扶持方式" name="proposal/fsupportway" class="input_css required" maxlength="100"
                   value="<x:out select="$xmlData/data/proposal/fsupportway" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">首次扶持金额（万元）：</td>
        <td>
            <input type="text" label="首次扶持金额" name="proposal/fsupportfunds" class="input_css required"
                   onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;"
                   value="<x:out select="$xmlData/data/proposal/fsupportfunds" />"/>
        </td>
        <td align="right">本次申请扶持方式：</td>
        <td>
            <input type="text" label="本次申请扶持方式" name="proposal/tsupportway" class="input_css required" maxlength="100"
                   value="<x:out select="$xmlData/data/proposal/tsupportway" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">联系人：</td>
        <td>
            <input type="text" label="联系人" name="proposal/contact_psn_cname" class="input_css required" maxlength="20"
                   value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/>
        </td>
        <td align="right">联系电话：</td>
        <td>
            <input type="text" label="联系电话" name="proposal/contact_psn_mobile" class="input_css required mobile"
                   onfocus="InitInput.setNumber(this,11,0,0)"
                   value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">邮箱：</td>
        <td>
            <input type="text" label="邮箱" name="proposal/contact_psn_email" class="input_css required email" maxlength="50"
                   value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/>
        </td>
        <td align="right">传真：</td>
        <td>
            <input type="text" label="传真" name="proposal/contact_psn_fax" class="input_css required" maxlength="100"
                   value="<x:out select="$xmlData/data/proposal/contact_psn_fax" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">公司地址：</td>
        <td colspan="3">
            <span name="organizations/organization/address">
                <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address"/>
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">注册所在地：</td>
        <td colspan="3">
            <span name="organizations/organization/area_name">
                <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_name"/>
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">主要产品：</td>
        <td colspan="3">
            <input type="text" label="主要产品" name="proposal/main_products" style="width: 88%" class="input_css required" maxlength="100"
                   value="<x:out select="$xmlData/data/proposal/main_products" />"/>
        </td>
    </tr>
</table>
<div class="t_bar"><span class="color_red">*</span>团队基本信息</div>
<table class="t_css" id="eq_table1" width="100%" border="0" cellpadding="0" cellspacing="1">
    <col width="20%"/>
    <col width="30%"/>
    <col width="20%"/>
    <col width="30%"/>
    <tr>
        <td align="right">人才团队名称：</td>
        <td colspan="3">
            <input type="text" label="人才团队名称" name="proposal/zh_title" style="width: 88%" class="input_css required" maxlength="100"
                   value="<x:out select="$xmlData/data/proposal/zh_title" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">归口管理部门：</td>
        <td colspan="3">
            <c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value"/>','name':'<x:out
                    select="$xmlData/data/proposal/recomend_org_name"/>'}</c:set>
            <cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang " readonly="true"
                      value="${recomend_org}" label="归口管理部门"
                      id="recomend_org" onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true"
                      onClick="initTreeValueExt"/>
            <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value" class="required"
                   value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理部门">
            <input type="hidden" name="proposal/recomend_org_name"
                   value="<x:out select="$xmlData/data/proposal/recomend_org_name" />"/>

        </td>
    </tr>
    <tr>
        <td align="right">团队领军人才姓名：</td>
        <td>
            <span name="proposal/fzr_name">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/></span>
        </td>
        <td align="right">所从事专业或产业领域：</td>
        <td>
            <input type="text" label="所从事专业或产业领域" name="proposal/team_psn_field" class="input_css required"
                   maxlength="50" value="<x:out select="$xmlData/data/proposal/team_psn_field" />"/>
        </td>
    </tr>
</table>
<div class="t_bar"><span class="color_red">*</span>省市扶持资金信息</div>
<table class="t_css" id="eq_table2" width="100%" border="0" cellpadding="0" cellspacing="1">
    <col width="20%"/>
    <col width="30%"/>
    <col width="20%"/>
    <col width="30%"/>
    <tr>
        <td colspan="4"><strong>省级扶持资金</strong></td>
    </tr>
    <tr>
        <td align="right">省扶持资金股权比例（%）：</td>
        <td>
            <input type="text" label="省级扶持资金-->省扶持资金股权比例" name="proposal/province_fundsratio"
                   class="input_css required valueLENum:province_fundsratio:100" style="text-align: right;"
                   id="province_fundsratio" maxlength="100" onfocus="InitInput.setNumber(this,3,2,2)"
                   value="<x:out select="$xmlData/data/proposal/province_fundsratio" />"/>
        </td>
        <td align="right">投资金额（万元）：</td>
        <td>
            <input type="text" label="省级扶持资金-->投资金额" name="proposal/pro_investment_amount" class="input_css required"
                   onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;"
                   value="<x:out select="$xmlData/data/proposal/pro_investment_amount" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">投后估值（万元）：</td>
        <td colspan="3">
            <input type="text" label="省级扶持资金-->投后估值" name="proposal/pro_touhou_guzhi" class="input_css required"
                   onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;"
                   value="<x:out select="$xmlData/data/proposal/pro_touhou_guzhi" />"/>
        </td>
    </tr>
    <tr>
        <td colspan="4"><strong>地市扶持资金</strong></td>
    </tr>
    <tr>
        <td align="right">地市出资平台名称：</td>
        <td>
            <input type="text" label="地市扶持资金-->地市出资平台名称" name="proposal/city_platform_name" class="input_css required"
                   maxlength="100" value="<x:out select="$xmlData/data/proposal/city_platform_name" />"/>
        </td>
        <td align="right">投资金额（万元）：</td>
        <td>
            <input type="text" label="地市扶持资金-->投资金额" name="proposal/city_investment_amount" class="input_css required"
                   onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;"
                   value="<x:out select="$xmlData/data/proposal/city_investment_amount" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">投资时间：</td>
        <td>
            <c:set var="city_investment_time"><x:out select="$xmlData/data/proposal/city_investment_time"/></c:set>
            <cpt:date id="city_investment_time" name="proposal/city_investment_time" value="${city_investment_time}"
                      className="required date"
                      label="地市扶持资金-->投资时间"></cpt:date>
        </td>
        <td align="right">投后估值（万元）：</td>
        <td>
            <input type="text" label="地市扶持资金-->投后估值" name="proposal/city_touhou_guzhi" class="input_css required"
                   onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;"
                   value="<x:out select="$xmlData/data/proposal/city_touhou_guzhi" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">投资方式：</td>
        <td colspan="3">
            <input type="text" label="地市扶持资金-->投资方式" name="proposal/city_touzi_way" class="input_css required"
                   maxlength="100" style="width: 88%"
                   value="<x:out select="$xmlData/data/proposal/city_touzi_way" />"/>
        </td>
    </tr>
    <tr>
        <td>企业最新一轮融资情况（时间、投后估值等，如扶持资金到位后无新增融资，则填写无）（限1000字）：</td>
        <td colspan="3">
            <textarea name="proposal/rongziqingkuang" class="input_textarea required maxlength:1000"
                      style="resize: none;width: 98%;height: 100px" label="地市扶持资金-->企业最新一轮融资情况"><x:out
                    select="$xmlData/data/proposal/rongziqingkuang"/></textarea>
            <input type="hidden" name="proposal/rongziqingkuang_hidden"
                   value="<x:out select="$xmlData/data/proposal/rongziqingkuang_hidden" />"/>
        </td>
    </tr>
</table>
<script type="text/javascript">
    function initTreeValueExt(treeId, treeNode) {
        if ((treeNode && treeNode.isParent)) {
            scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
            $("#" + treeId).val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
            return false;
        }
        var str = treeNode.name;
        var obj = treeNode.parentNode;
        while (obj != null) {
            str = obj.name + "-" + str;
            obj = obj.parentNode;
        }

        $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
    }
</script>